<?php $intro = $this->db->where('code', 'introduction')->get('article')->row_array();?>
<?php $map = $this->db->where('code', 'map')->get('article')->row_array();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
	<title>Контакты - Tingo</title>
    <link type="text/css" href="<?php echo base_url('assets/css/style.css');?>" rel="stylesheet"/>
    <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.8.3.min.js');?>"></script>
    <script type="text/javascript" src="<?php echo base_url('assets/js/main.js');?>"></script>
    <style type="text/css">
        #dialog-wrapper{display: none;position: fixed;width: 100%;height: 100%;background: #000; opacity: 0.5;z-index: 999998;top: 0; left: 0;}
        #dialog{
            width: 500px; height: auto; background: none repeat scroll 0 0 #777777; border: 1px solid #DDDDDD; font-size: 13.5px;margin: 0 auto; position: fixed; top: 30%; left: 30%;
            z-index: 999999; padding: 10px;
        }
        #dialog .sanpham{
            height: auto; background: #fff; margin: auto;position: relative;
        }
        #dialog .sanpham h2{
            margin: 0;padding: 0;font-size: 16px;position: absolute; left: 10px; top: 10px;
        }
        #dialog .sanpham img{
            margin-top: 30px;
        }
        #dialog .sanpham span{
            margin: 0;padding: 0;font-size: 13px;position: absolute; display: block;
            text-align: right; right: 10px; top: 10px;
        }
        #dialog .sanpham .chitiet{
            padding: 10px;
        }
    </style>
</head>
<body>
<div id="backgroup-map">
    <div id="logo"></div>
    <div id="wapper">
		<div id="nutgh" onclick="giohang();" style="margin-bottom: 5px;"><span style="color: #e10202; margin-left: 5px; ">(<?php echo count( $this->cart->contents()); ?>) &#32; &#32;</span>Корзина</div>
        <div id="search">
            <form method="post">
                <input id="btn" type="submit" value="" style="width: 100px;height: 27px;float: right;margin-top: 1px"/>
                <input type="text" style="width: 360px;height: 30px;float: right " class="icontext"/>
            </form>
        </div>
        <div id="main2-map"></div>
        <div id="main">
            <div id="header">
                <ul>
                    <li><a href="<?php echo base_url('/index.php/index'); ?>">Домашняя Страница   </a></li>
                    <li><a href="#" onclick="giohang();">Оформить 3аказ</a><span style="color: #e10202; margin-left: 5px; ">(<?php echo count( $this->cart->contents()); ?>) &#32; &#32;</span></li>
                    <li><a href="<?php echo base_url('/index.php/map');?>">Контакты</a></li>
                    <li><a href="<?php echo base_url('/index.php/gioithieu'); ?>">О Нас </a></li>
                </ul>
            </div>
            <div id="main_left-map">
                <div class="menu-left">
                    <h2 style="background-color:#0066FF;color: #ffffff;border-bottom:#999999 solid thin;">Каталог IIродукции</h2>

                    <?php           if(isset($category)) {            
					foreach($category as $i=>$item) {            ?>
                    <h2 class="h2 h2-<?php echo $i ?>">
                        <a href="<?php echo base_url('/index.php/product'); ?>?catid=<?php echo $item['id'] ?>">
							<?php echo $item['name'];?>
						</a>
                    </h2>
                    <ul>
						<?php
						foreach ($item['items'] as $child) { ?>
								<li><span>                            
									<a href="<?php echo base_url('/index.php/product'); ?>?catid=<?php echo $child['id'] ?>"> 
										<?php echo $child['name'];?>
									</a>
								</span></li>                
				<?php 	}?>
					</ul>
<?php            	}
				}?>
                </div>
                <div class="contact">
                    <h2 >Oнлайн-поддержка</h2>
                    <div class="img-contact">
                        <img src="<?php echo base_url('assets/images/phone.jpg');?>"  >
                        <strong style="top: 0;left: 100px;">Телефон, факс:</strong><br/>
                        <span style="top: 20px;">+7(945) 988 7693</span> <br/>
                        <span style="top: 40px;">+7(499) 161 4177</span> <br/>
                        <strong style="top: 60px;">E-mail:</strong> <br/>
                        <span style="top: 80px;">tingo-shoes@mail.ru</span> <br/>
                    </div>
                </div>
            </div>
            <div id="main_right_map">
			<?php if ($map and $map['content']) {?>
				<?php echo $map['content'];?>
			<?php } else {?>
                <div class="img-map">
                    <img src="<?php echo base_url('assets/images/map.jpg');?>">
                </div>
                <div class="text-map">
                    <p style="margin-top: 48px; ">Адрес: г. Москва, м. Преображенская площадь, </p>
                    <p>------- Краснобогатырская ул., д. 42, офис 615</p>
                    <p>Телефон, факс: +7 (495) 988 7693, +7 (499) 161 4177</p>
                    <p>Наш сайт: www.tingo-shoes.com, www.tingo-shoes.ru </p>
                    <p>E-mail: tingo-shoes@mail.ru, livial99@mail.ru </p>
                </div>

                <div class="text-text">
                    <p>------------------------------------------------------------<span></span>
                    -------------------Схема проезда----------------</p>
                </div>
			<?php }?>
            </div>
            <div id="footer-map">
                <div class="menu">
                    <ul>
                        <li><a href="<?php echo base_url('/index.php/index');?>">Домашняя Страница </a></li>
                        <li><a href="#">Оформить 3аказ</a></li>
                        <li><a href="#">Контакты</a></li>
                        <li><a href="<?php echo base_url('/index.php/gioithieu');?>">О нас   </a></li>
                    </ul>
                </div>
                <div class="text-footer">
                    <p>
                        © Tingo 2002–2013<br>

                    </p>
                </div>
            </div>
        </div>

    </div>

</div>

</div>
</body>
</html>